home *** CD-ROM | disk | FTP | other *** search
/ Leonardo the Inventor / Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso / LEOWINMV / SHARED.DIR / 03123_Script_Cursor Utilities < prev    next >
Text File  |  1996-04-01  |  764b  |  33 lines

  1. on storeAndKillCursors listOfSprites
  2.   set theList = []
  3.   repeat with S in listOfSprites
  4.     add theList, the cursor of sprite S
  5.     set the cursor of sprite S = 0
  6.   end repeat
  7.   updatestage
  8.   return theList
  9. end
  10.  
  11. on restoreCursors listOfSprites, listOfCursors
  12.   if voidP(listOfSprites) or voidP(listOfCursors) then exit
  13.   
  14.   set index = 1
  15.   repeat with S in listOfSprites
  16.     set the cursor of sprite S = getAt (listOfCursors, index)
  17.     set index = index + 1
  18.   end repeat
  19. end
  20.  
  21. on clearSSVRCursors
  22.   global spriteList
  23.   
  24.   if voidP(spriteList) or spriteList = [] then exit
  25.   
  26.   repeat with S in spriteList
  27.     set the cursor of sprite S = -1
  28.     set the cursor of sprite S = 0
  29.   end repeat
  30.   updatestage
  31.   
  32.   set spriteList = []
  33. end